package com.example.mybatis_plus.controller;/**
 * @Author wxc
 * @Date 2021/4/23 10:23
 */

import com.example.mybatis_plus.entity.User;
import com.example.mybatis_plus.service.ShoeTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author wxc
 * @date 2021年04月23日 10:23
 */
@Controller
public class ShoeTeacherController {

    @Autowired
    private ShoeTeacherService shoeTeacherService;

    @PostMapping("/listTeacher")
    public List<User> listTeacher(){
        return shoeTeacherService.listTeacher();
    }

}
